KnowsCurrentFile

interface KnowsCurrentFile

Utility methods for working with a MessageCollector when the current file is available

Functions

messageLocation
Link copied to clipboard
open fun IrElement.messageLocation(): CompilerMessageSourceLocation?

Get the message location for an element

report
Link copied to clipboard
open fun MessageCollector.report(message: String, level: CompilerMessageSeverity, location: CompilerMessageSourceLocation?)

Report a message

reportAt
Link copied to clipboard
open fun MessageCollector.reportAt(message: String, level: CompilerMessageSeverity, location: IrElement)

Report a message at the given element

reportError
Link copied to clipboard
open fun MessageCollector.reportError(message: String, location: CompilerMessageSourceLocation?)
open fun MessageCollector.reportError(message: String, location: IrElement)
reportInfo
Link copied to clipboard
open fun MessageCollector.reportInfo(message: String, location: CompilerMessageSourceLocation?)
open fun MessageCollector.reportInfo(message: String, location: IrElement)
reportWarning
Link copied to clipboard
open fun MessageCollector.reportWarning(message: String, location: CompilerMessageSourceLocation?)
open fun MessageCollector.reportWarning(message: String, location: IrElement)

Properties

file
Link copied to clipboard
abstract val file: IrFile

Gets the current file

Inheritors

IrTransformer
Link copied to clipboard

Sources

jvm source
Link copied to clipboard